package router

import (
	"api_gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	v1 := r.Group("/v1")
	{
		alipay := v1.Group("/alipay")
		{
			alipay.POST("/pay", api.Pay) //支付
		}
		order := v1.Group("/order")
		{
			order.POST("/createOrder", api.CreateOrder) //创建订单
		}
	}
}
